<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/6 0006
 * Time: 9:23
 */




//工作台
Route::get('work', [
    'as' => 'work.index', 'uses' => 'WorkController@index'
]);


//下载图片
Route::get('work/download/{id}', [
    'as' => 'work.download', 'uses' => 'WorkController@download'
]);


//下载图片
Route::get('uploads/{id}/{tid}/{file}', [
    'as' => 'uploads.download', 'uses' => 'WorkController@uploads'
]);





//审核
Route::post('work/check', [
    'as' => 'work.check', 'uses' => 'WorkController@check'
]);


Route::post('work/audit', [
    'as' => 'work.audit', 'uses' => 'WorkController@audit'
]);


Route::post('work/accessory', [
    'as' => 'work.accessory', 'uses' => 'WorkController@accessory'

]);



//记录支出
Route::post('work/expense', [
    'as' => 'work.expense', 'uses' => 'WorkController@expense'
]);
//显示财务下载
Route::any('work/expense/showdownload', [
    'as' => 'work.expense.check', 'uses' => 'WorkController@showDownload'
]);

//是否通过
Route::any('work/expense/passornot', [
    'as' => 'work.expense.check', 'uses' => 'WorkController@passornot'
]);


//搜索
Route::get('work/expense/search', [
    'as' => 'work.expense.search', 'uses' => 'WorkController@search'
]);


//报销图片显示
Route::get('work/expense/ajaxpic', [
    'as' => 'work.expense.check', 'uses' => 'WorkController@ajaxPic'
]);



//下载附件
Route::get('work/expense/getdownload/{uid}/{did}/{path}', [
    'as' => 'work.expense.check', 'uses' => 'WorkController@getDownload'

]);

//打包下载
Route::get('work/newdownload/{stageId}', [

    'as' => 'work.newdownload', 'uses' => 'WorkController@newDownload'

]);